package com.dcits.hk;

import com.dcits.helper.MybatisPlusGeneratorHelper;

import java.util.Arrays;

/**
 * 代码生成器
 *
 * @author: kui.liu
 */
public class CodeGenerator {
    public static void main(String[] args) {
        MybatisPlusGeneratorHelper.Param param = MybatisPlusGeneratorHelper.Param.builder()
                .baseSubModuleName("/bms-modules/bms-hk/") //工程项目距相对路径
                .basePackage("com.dcits")  //工程项目基础package
                .baseSubModulePackage("com.dcits.hk") //子工程package
                .dbUrl("jdbc:mysql://localhost:3306/dcits?serverTimezone=GMT%2B8")
                .dbUsername("dev")
                .dbPassword("123456")
                .tableInclude(Arrays.asList("t_user"))
                .tablePrefix(Arrays.asList("t_"))
                .build();
        MybatisPlusGeneratorHelper.generatorCode(param);
    }
}